<?php
/* @var $this UserController */
/* @var $model User */
$this->pageTitle = Yii::app()->name . ' - Đăng ký';
$this->breadcrumbs = array(
    'Đăng ký'
);
//if (!is_null($model) && sizeof($model) > 0) {
//    foreach ($model as $user) {
//        if ($user->avatar != null) {
//            echo '<img width="80px" src="' . Yii::app()->baseUrl . '/upload/user/' . $user->id . '/avatar/' . $user->avatar . '"><br>';
//        }
//        echo $user->email . '<br/>';
//        echo $user->username . '<br/>';
//        echo $user->fullname . '<br/>';
//        if (Yii::app()->user->id != $user->id) {
//            if ($checkFollow) {
//                
?>
<!--                <a href="#" class="follow_link_//<?php // echo $user->id;  ?>"
                   onclick="return follow(//<?php // echo $user->id; ?>);">Bỏ theo dõi</a>-->
<?php
//               } else {
//                   
?>
<!--                <a href="#" class="follow_link_//<?php // echo $user->id; ?>"
                   onclick="return follow(//<?php // echo $user->id; ?>);">Theo dõi</a>-->
<?php
//               }
//           }
//           echo '<hr>';
//       }
//   }
//   echo CHtml::link('Hoàn thành', array(
//       'site/index'
//   ));
//   
?>
<!-- register -->
<div id="register">
    <div class="content interest">
        <div class="reg_title"><h1>Thành viên theo dõi</h1></div>
        <div class="reg_follow">
            <h2>Thử theo dõi 1 vài người dưới đây, có thể họ sẽ hợp "Gu" với bạn</h2>
            <?php
//            
//            if (!is_null($model) && sizeof($model) > 0) {
//                foreach ($model as $user) {
//                    
            ?>
            <!--                    <div class="reg_follow_li">
                                    <div class="reg_follow_li_mask"><input id="cb1" class="wrapped" /><span id="cb1_wrap" class="wrap unchecked"></span></div>
                                    <div class="reg_follow_li_bg">
                                        <img src="//<?php // echo Yii::app()->baseUrl . '/upload/user/' . $user->id . '/avatar/' . $user->avatar; ?>" border="0" /><p><a title="Lyzmary" href="#"><h2><?php // echo $user->fullname; ?></h2></a></p>
                                    </div>
                                </div>-->
            <?php
//                }
//            }
//            
            ?>
<?php
$users = User::model()->findAll();
if (!is_null($users) && sizeof($users) > 0) {
    foreach ($users as $user) {
        ?>
                    <div class="reg_follow_li">
                        <div class="reg_follow_li_mask"><input id="<?php echo $user->id;?>" class="wrapped" /><span id="<?php echo $user->id;?>" class="wrap unchecked"></span></div>
                        <div class="reg_follow_li_bg">
                            <img src="<?php echo Yii::app()->baseUrl . '/upload/user/' . $user->id . '/avatar/' . $user->avatar; ?>" border="0" /><p><a title="Lyzmary" href="#"><h2><?php echo $user->fullname; ?></h2></a></p>
                        </div>
                    </div>
        <?php
    }
}
?>    
            <div class="clr"></div>
            <a href="#" class="dlb mt10" style="text-align: center;"><h2>Xem thêm...</h2></a>
        </div>
        <a href="<?php echo Yii::app()->createUrl('user/register6'); ?>" class="gr_btn_big">Tiếp tục</a>
        <div class="reg_step">
            <span></span>
            <span></span>
            <span></span>
            <span class="active"></span>
        </div>
    </div>
</div>
<!-- /register -->   
<!--<script type="text/javascript">
       function follow(id) {
           $.ajax({
               url: "<?php // echo Yii::app()->createUrl('user/follow') . '?id=';  ?>" + id,
               type: 'GET',
               success: function(data) {
                   $("a.follow_link_" + id).text(data);
               }
           });
           return false;
       }
</script>-->



